package magazzino.tests;

import magazzino.Vettura;
import magazzino.utils.DataLoader;
import magazzino.utils.DataWriter;
import magazzino.utils.Formatter;
import magazzino.utils.IFormatter;

public class Test1 {
	public static void main(String[] args) {


		
		DataLoader data = new DataLoader("vettura1");
		IFormatter formatted = new Formatter(data.getStocks(), data.getVettura());
		Vettura vettura = new Vettura(formatted);
		
		
		System.out.println(formatted.getModels().get(0));
		
		DataWriter writer = new DataWriter();
		writer.setVettura(vettura);
		writer.setFilename("vettura2");
		writer.writeData();
	}
}
